import {createRouter,createWebHistory} from 'vue-router'


//路由部分
const routes=[
    {
        path:'/login',
        component:()=>import('@/views/A/login/Login.vue')
    },
    {
        path:'/profile',
        component:()=>import('@/views/A/profile/self-setting.vue')
    },
    {
        path:'/userEdit',
        component:()=>import('@/views/A/user/UserEdit.vue')
    },
    {
        path:'/userList',
        component:()=>import('@/views/A/user/UserList.vue')
    },
    {
        path:'/menu',
        component:()=>import('@/views/B/menu/Menu.vue')
    },
    {
        path:'/role',
        component:()=>import('@/views/B/role/Role.vue')
    },
    {
        path:'/system',
        component:()=>import('@/views/B/system/Settings.vue')
    }

]

//创建vuerouter实例
export const router = createRouter({
    history: createWebHistory(),
    routes
  })